package com.huse.pigservice.service.impl;

import com.huse.pigservice.entity.Piggery;
import com.huse.pigservice.mapper.PiggeryMapper;
import com.huse.pigservice.service.PiggeryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 记录猪舍编号信息的表 服务实现类
 * </p>
 *
 * @author xinxin
 * @since 2021-05-28
 */
@Service
public class PiggeryServiceImpl extends ServiceImpl<PiggeryMapper, Piggery> implements PiggeryService {

    @Override
    public List<Piggery> piggeryTree() {
        return baseMapper.getPiggeryTree();
    }
}
